home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple Reference & Present…nuary (Partner) - Disc 2
/
The Apple Reference and Presentations Library (Disc 2)(January 1994).iso
/
Graphisoft
/
US English
/
ArchiCAD
/
ArchiCAD 4.5-68K
/
ArchiCAD Library
/
08 Doors & Windows
/
Window Macros
/
half_frame
< prev
next >
Wrap
Text File
|
1994-04-08
|
1KB
|
64 lines
!half_frame /rewritten 2/17/94/***VL/
!a, b, frame width, frame thickness,
! glass material, resolution
r=f !***resolution
s=360/r !***rotation angle
j=a/2
g=1.5*c !***frame#2 thickn. = 0.5*frame#1 thickn.
k=j-c
p=j-g
l=b-c
q=b-g
x=k-sqr(k*k-c*c) !***frame#1 internal edge distance(-Δx)
m=k-x
y=p-sqr(p*p-g*g) !***frame#2 internal edge distance(-Δx)
n=p-y
for v=0 to r/2
w=v*s
Put j*cos(w), b*sin(w), 13+64
next v
Put m,c,15
for v= 1 to r/2-1 step 1
w=v*s
Put k*cos(w), l*sin(w), 13+64
next v
Put-m,c,15
prism_ 2+nsp/3,d, !***frame#1 (external)
get(nsp/2),
j,0,-1,
use(nsp),
m,c,-1
Put n,g,15
for v= 1 to r/2-1 step 1
w=v*s
Put p*cos(w), q*sin(w), 13+64
next v
Put-n,g,15
addz d/4
prism_ 2+nsp/3,d/2, !***frame#2 (internal)
get(nsp/2),
m,c,-1,
get(nsp),
n,g,-1
body 3
if e=0 then 20 !***w/o glass
Put n,g,15
for v= 1 to r/2-1 step 1
w=v*s
Put p*cos(w), q*sin(w), 13+64
next v
Put-n,g,15
material e
addz d/4-0.002
prism_ 1+nsp/3,0.004, !***glass
get(nsp),
n,g,13
body 3
20:
end